package org.einbazen.xmlliteratuur;

public class Startup {
	private static long startTime;
	private static long stopTime;
	
	public static void main(String args[])
	{
//		Student s = new Student("1", "2", "3", "4", "5", "6", "7", "8");
//		s.ToJSON();
//		s.ToYAML();
//		s.ToCSV();
		
//		StartTimer();
//		s.ToXml();
//		StopTimer();
		
		StartTimer();
		
//		for(int i = 0; i < 1000; i++) {
			Student s = new Student("1", "2", "3", "4", "5", "6", "7", "8");
			s.ToXml();
//		}
		
		StopTimer();
		
		
//		Startup.StartTimer();
//		new CSVparser();
//		double timeCSV = Startup.StopTimer();
//		Startup.StartTimer();
//		new JSONparser();
//		double timeJSON = Startup.StopTimer();
//		System.out.println(timeCSV + " " + timeJSON);
	}
	
	public static void StartTimer()
	{
		startTime = System.nanoTime();
	}
	
	public static double StopTimer()
	{
		stopTime = System.nanoTime();
        long elapsedTime = stopTime - startTime;
        System.out.println("Dit duurde: " + (double)elapsedTime / 1000000000 + " seconden");
        return (double)elapsedTime / 1000000000;
	}
}
